#ifndef CYLINDER_H
#define CYLINDER_H
#include "icgobject.h"

class Cylinder : public ICgObject
{
public:
    Cylinder();
    bool intersect(const Ray &r, double &t, Vector &normal) const;
    void openGlRender() const;
    ICgObject* clone() const;

private:
    void buildLateral();
    void buildBases();
    Face top_base, bottom_base;
};

#endif // CYLINDER_H
